// 1.医院设置中,获取分页列表的数据类型设置
export interface getHospitalSetlistParamsType {
    page: number,
    limit: number,
    hosname?: string,
    hoscode?: string,
}

// 2.医院设置中,获取分页列表请求的返回值数据类型

//2.1返回值的Records中每一项的类型
export interface getHosSetListItemsType {
    id: string,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: object,
    hosname: string,
    hoscode: string,
    apiUrl: string,
    signKey: string,
    contactsName: string,
    contactsPhone: string,
    status: 0 | 1
}

//2.2返回值的Records这个数组的类型
export type getHosSetListRecordsType = getHosSetListItemsType[];

// 2.3医院设置中,获取分页列表请求的返回值数据类型
export interface getHospitalSetlistReturnType {
    records: getHosSetListRecordsType,
    total: number,
    size: number,
    current: number,
    orders: any[],
    hitCount: boolean,
    searchCount: boolean,
    pages: number
}

// 新增医院数据的api请求的参数数据类型,因为这里是新增数据的请求=>post,所以不需要返回值
// 也就不需要设置返回值的数据类型
export interface addHospitalParamType{
  apiUrl: string,
  contactsName: string,
  contactsPhone: string,
  hoscode: string,
  hosname: string
}


// 设置更新医院数据api的请求的参数数据类型,比新增(数据类型)的时候多了一个id属性
// 这里可以直接用继承
export interface updateHospitalParamType extends addHospitalParamType{
  id:string
}


/* 
   {
    "records": [
      {
        "id": 10,
        "createTime": "2022-04-11 16:41:18",
        "updateTime": "2022-06-15 08:22:30",
        "isDeleted": 0,
        "param": {},
        "hosname": "北京大学深圳医院",
        "hoscode": "2022222",
        "apiUrl": "http://api.bjdxszyy.cn",
        "signKey": "62b84e910bd6d7b67157aed66e7aa866",
        "contactsName": "隔壁老王",
        "contactsPhone": "13000000000",
        "status": 0
      }
    ],
    "total": 10,
    "size": 1,
    "current": 1,
    "orders": [],
    "hitCount": false,
    "searchCount": true,
    "pages": 10
  }
*/